package com.frank.oj.service.file;

import com.frank.oj.common.exception.StatusFailException;
import com.frank.oj.common.exception.StatusForbiddenException;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author frank
 * @Date 2024/4/8
 */
public interface ContestFileService {
    void downloadContestACSubmission(Long cid, Boolean excludeAdmin, String splitType, HttpServletResponse response) throws StatusForbiddenException, StatusFailException;

    void downloadContestPrintText(Long id, HttpServletResponse response) throws StatusForbiddenException;

    void downloadContestRank(Long cid, Boolean forceRefresh, Boolean removeStar, Boolean isContainsAfterContestJudge, HttpServletResponse response) throws StatusForbiddenException, StatusFailException, IOException;
}
